package main

import (
	"encoding/json"
	"fmt"
)

type GridType map[int]map[int]int

func arrayToGrid(array *[9][9]int) GridType {
	grid := make(GridType)

	for i, row := range array {
		for j, val := range row {
			if grid[i] == nil {
				grid[i] = make(map[int]int)
			}
			grid[i][j] = val
		}
	}
	return grid
}

func outToJSON(grid GridType) string {
	bytes, err := json.Marshal(grid)
	if err != nil {
		panic(err)
	}
	return string(bytes)
}

func main() {
	row, col := 9, 9
	array := [9][9]int{}
	for i := 0; i < row; i++ {
		for j := 0; j < col; j++ {
			fmt.Scanf("%d", &array[i][j])
		}
	}

	grid := arrayToGrid(&array)
	fmt.Println(outToJSON(grid))
}
